package com.meteor.service.impl;

import com.meteor.mapper.CommentMapper;
import com.meteor.pojo.Comment;
import com.meteor.service.CommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {

    @Resource
    private CommentMapper commentMapper;


    @Override
    public List<Comment> selectAllById(Integer bookId) {
        return commentMapper.selectAllById(bookId);
    }
}
